package com.longtu.chat.util;

/**
 * @author wtl
 * @date 2022/4/19 14:08
 */
public class Constant {
    public static class RedisKey{
        public static String xyKey = "chat-xy";
    }
    public static enum MessageType{
        System("普通消息"),
        Open("上线消息"),
        Close("离线消息");

        private String type;

        MessageType(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }
    }

    public enum State {
        ONLINE(1), NO_ONLINE(3);
        private Integer state;

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        State(Integer state) {
            this.state = state;
        }
    }
}
